package com.ydkj.a37e_mall.Classes.Model.Request;

import android.text.LoginFilter;
import android.util.Log;
import android.widget.EditText;

import com.ydkj.a37e_mall.Classes.Model.Base.BaseReq;
import com.ydkj.a37e_mall.Resource.Utils.Rsa;

/**
 * Created by Administrator on 2017/2/7.
 */

public class EditShoppingCarReq extends BaseReq {
    private String uuid;
    private String product_id;
    private String activity_id;
    private String format;
    private String num;
    private String secret;

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getProduct_id() {
        return product_id;
    }

    public void setProduct_id(String product_id) {
        this.product_id = product_id;
    }

    public String getActivity_id() {
        return activity_id;
    }

    public void setActivity_id(String activity_id) {
        this.activity_id = activity_id;
    }

    public String getFormat() {
        return format;
    }

    public void setFormat(String format) {
        this.format = format;
    }

    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }

    public String urlString() {
        return "cart/update/";
    }

    public String getSecret() {
        String string = "uuid=" + uuid + "&product_id=" + product_id + "&num=" + num;
        Log.e("ssss", "更改购物车source==>" + string);
        try {
            Rsa rsa = new Rsa();
            secret = rsa.encryptByPublic(string);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return secret;
    }
}
